{% set isNav = true %}
{% extends "./layout/layout.html" %}
{# 引入宏 #}
{% import './macro/blog-list.html' as list %}
{% import './macro/loadMore.html' as loadBtn %}
{% import './macro/user-info.html'as user %}
{% import './macro/fans.html'as fans %}
{% import './macro/follower.html'as follower %}

{% block headCss %}
<link rel="stylesheet" href="/css/profile.css">
{% endblock %}
{% block content %}

<div class="container">
  <div class="row">
    <div class="col-lg-8">
      <h2>我的空间</h2>
      <div class="item-wrapper">
        {% for item in blogList %} {{ list.list(item) }} {% endfor %}
      </div>

      {{loadBtn.loadMore(
        pageIndex,
        pageSize,
        count,
        api = '/api/blog/loadProfileMore/'+ userData.userInfo.userName + "/"
      ) }}
    </div>
    <!-- 个人信息 -->
    <div class="col-lg-4 users">
      {{user.userInfo(
        user = userData.userInfo,
        isMe = userData.isMe,
        isMeFollow = userData.isMeFollow
      )}}
      <!-- {{userData.isMeFllow}} -->
      <!-- 关注列表 -->
      <div>
        {{ follower.showFollower( count=userData.followData.count, userList=userData.followData.followList) }}
      </div>
      <!-- 粉丝列表 -->
      <div>
        {{ fans.showFans( count=userData.fansData.count, userList=userData.fansData.fansList) }}
      </div>
    </div>
  </div>
</div>
{% endblock %}